package com.art.sunflower.service;

import com.art.sunflower.exception.UsernameExistException;
import com.art.sunflower.pojo.User;
import org.apache.shiro.authc.AccountException;

import java.security.NoSuchAlgorithmException;
import java.util.List;
import java.util.Map;


public interface UserService {

    String login(String username, String password) throws AccountException;

    void register(User user) throws UsernameExistException, NoSuchAlgorithmException;

    void resetPassword(String oldOne, String newOne);

    List<User> selectAll();

    int insertUser(User user);

    void updateInformation(String realName, String email);

    Map<String, Object> getInformation();


}
